const state = {
  isShow: true,
  leftMessage: {},
  rightMessage: {},
};
const mutations = {
  CHANGEHEADERSTATE(state, isShow) {
    state.isShow = isShow;
  }
};
const actions = {
  changeHeaderState({ commit, state }, isShow) {
    if (state.isShow == isShow) {
      return;
    }
    commit("CHANGEHEADERSTATE", isShow);
  }
};
const getters = {
  headerState(state) {
    return state.isShow;
  }
};

export default {
  state,
  mutations,
  actions,
  getters,
}
